package com.self.home.colorlinez.util;

import android.content.Context;

import com.blankj.utilcode.utils.StringUtils;

public class ConstantUtils {

    public static int getMaxScore(Context context) {
        String maxScore = ACache.get(context).getAsString("maxScore");
        return StringUtils.isEmpty(maxScore) ? 0 : Integer.valueOf(maxScore);
    }

    public static void setMaxScore(Context context, String maxScore) {
        if (maxScore == null) {
            ACache.get(context).remove("maxScore");
        } else {
            ACache.get(context).put("maxScore", maxScore);
        }
    }
}
